package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop {
    //主键
    private Integer id;
    //商品名称
    private String name;
    //分类名称
    private String category;
    //品牌
    private String brand;
    //规格
    private String attr;
    //图片
    private String image;
    //商品描述
    private String decript;
    //价格
    private Double price;
    //计量单位
    private String unit;
    //库存数
    private Integer stock;
    //锁定库存
    private Integer stockLocked;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //是否上架
    private Integer status;
}
